package com.tjetc.Scanner;

import java.util.Scanner;

public class T01Scanner {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入姓名");
        String name= scanner.next();
        System.out.println("请输入年龄");
        int age= scanner.nextInt();
        System.out.println("姓名："+name+"\n"+ "年龄："+age);

    }
}
